package com.xxgc.eow.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 收藏评论表
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-05-24
 */
@Getter
@Setter
@Schema(name = "Collectcomment", description = "收藏评论表")
public class Collectcomment implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "用户id")
    private Integer userId;

    @Schema(description = "收藏的评论")
    private List<Comment> comment;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Schema(description = "销毁时间")
    private LocalDateTime destroyTime;

    @Schema(description = "假删除状态")
    private Integer tip;

    @Override
    public String toString() {
        return "Collectcomment{" +
                "userId=" + userId +
                ", comment=" + comment +
                ", createTime=" + createTime +
                ", destroyTime=" + destroyTime +
                ", tip=" + tip +
                '}';
    }

    public Collectcomment(Integer userId, List<Comment> comment, LocalDateTime createTime, LocalDateTime destroyTime, Integer tip) {
        this.userId = userId;
        this.comment = comment;
        this.createTime = createTime;
        this.destroyTime = destroyTime;
        this.tip = tip;
    }

    public Collectcomment() {
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public List<Comment> getComment() {
        return comment;
    }

    public void setComment(List<Comment> comment) {
        this.comment = comment;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getDestroyTime() {
        return destroyTime;
    }

    public void setDestroyTime(LocalDateTime destroyTime) {
        this.destroyTime = destroyTime;
    }

    public Integer getTip() {
        return tip;
    }

    public void setTip(Integer tip) {
        this.tip = tip;
    }
}
